import http from '@/utils/http.js'

//获取轮播图banner
export const getBannerApi = (params = {}) => {
  const { distributionSite = "1" } = params
  return http.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

//获取新鲜好物内容
export const getNewApi = () => {
  return http.get('/home/new')
}

//获取人气推荐内容
export const getHotApi = () => {
  return http.get('/home/hot')
}

//获取所有产品的内容
export const getGoodsApi = () => {
  return http.get('/home/goods')
}